unwanted font info displayed

I wrote a script to display the contents of an attribute's contents from a different module, but I'm getting more than just the text. It displays the font size and type as well as some other things. Does anyone know what is causing this or how to get rid of the extra info?

Thanks
SystemAdmin - Thu Jun 18 15:00:42 EDT 2009

Re: unwanted font info displayed
Tony_Goodman - Fri Jun 19 02:52:32 EDT 2009

You don't mention if you are using layout DXL or not.

I suspect you are using probeRichAttr_ to get the richText string from the attribute. but then you are displaying the text using display, a non-rich text function. The following examples show the difference.

// display plain text
string s = probeAttr_(obj, "Object Text")
display s

 

 

// display rich text
string s = probeRichAttr_(obj, "Object Text", false)
displayRich s

 

 

Re: unwanted font info displayed
llandale - Sun Jun 21 16:55:09 EDT 2009

Tony_Goodman - Fri Jun 19 02:52:32 EDT 2009

You don't mention if you are using layout DXL or not.

I suspect you are using probeRichAttr_ to get the richText string from the attribute. but then you are displaying the text using display, a non-rich text function. The following examples show the difference.

// display plain text
string s = probeAttr_(obj, "Object Text")
display s

 

 

// display rich text
string s = probeRichAttr_(obj, "Object Text", false)
displayRich s

 

 

... Or mis-matched, using 'probeRichAttr_' with 'display'.